<?php
global $cv_option;
get_header(); // Loads the header.php template. ?>		
		
		<div id="main" class="clearfix">				
			
			<div id="content" class="clearfix">
				
				<?php get_template_part('trending-story'); ?>	
			
				<div class="clear"></div>
			
				<div class="home-blog <?php if($cv_option['sc_disable_socials'] == true) echo 'disable-socials';?>">
			
					<h3 class="home-blog-title title-small"><span><?php echo $cv_option['home_blog_title']; ?></span></h3>
				
						<?php 
						global $entry_count;
						$entry_count = 0;
						$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
						query_posts(array('showposts' => $cv_option['home_blog_amount'], 'paged' => $paged));
						if ( have_posts() ) : ?>
						
							<?php while ( have_posts() ) : the_post(); $entry_count++;?>					

							   <?php get_template_part('entry'); ?>
								
							<?php endwhile; ?>							

						<?php else : ?>
							<?php get_template_part('no-results'); ?>				
						<?php endif; ?>						
					
				</div><!-- .home-blog -->	
			</div> <!-- #content -->		
			
			<?php get_sidebar( 'primary' );  ?>			
			
			<div id="nav-below" class="page_navi">						 
				<?php cv_pagenavi(); ?> 
			</div><!-- #nav-below -->	
			
			
		</div><!-- #main -->		
	
	
<?php get_footer(); // Loads the footer.php template. ?>		